import { BasicFetchResult } from '@/api/model/baseModel'
import { CategroyModel } from './cateModel'
import { ProviderModel } from './providerModel'
import { GoodsModel } from './goodsModel'

/**
 * 服务商模型
 */
export interface ServiceModel {
  id: number
  provider_id: number
  name: string
  phone: string
  avatar_url: null
  order_count: number
  order_complete_count: number
  rating: number
  sort: number
  create_time: string
  update_time: string
  provider: ProviderModel
  category: CategroyModel[]
  apply_desc: string
  goods: GoodsModel
  order: any
}

export type ServiceGetResultModel = BasicFetchResult<ServiceModel>
